home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1882 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  890 b   |  33 lines

  1. on(press){
  2.    _root.txt_number = 1;
  3.    if(_root.inven._currentframe == 1)
  4.    {
  5.       if(_root.micon._currentframe == 1 && _root.range == true)
  6.       {
  7.          if(_root.even10 == 0)
  8.          {
  9.             _root.next_dis1 = 2;
  10.             _root.next_txt1 = "Hmm if I really wanted to do that I\'d use a knife.";
  11.          }
  12.          else
  13.          {
  14.             _root.next_dis1 = 2;
  15.             _root.next_txt1 = "I\'ll leave it in there.";
  16.          }
  17.       }
  18.       if(_root.micon._currentframe == 2)
  19.       {
  20.          _root.next_dis1 = 2;
  21.          _root.next_txt1 = "It\'s an outlet.";
  22.       }
  23.       if(_root.micon._currentframe == 47 && _root.range == true)
  24.       {
  25.          _root.sfx.gotoAndStop(3);
  26.          _root.micon.gotoAndStop(1);
  27.          _root.even10 = 1;
  28.          _root.next_dis1 = 2;
  29.          _root.next_txt1 = "Now it should work.";
  30.       }
  31.    }
  32. }
  33.